<% %>
<span id='indicator-tab' style="float:right;padding-right:100px;padding-top:5px;display:none"><%=image_tag"indicator.gif"%></span>
<div class='extra-nav'>
  <ul>
    <li <%="class=active" if @action_name == 'index' or @action_name == 'show_active_projects' or @tab == 1%>>
	    <%=link_to_remote 'Active Projects'.t + " (" + @company.active_projects.size.to_s + ")",
	                      :update=>'projects_list',
	                      :loading =>"Element.show('indicator-tab')",
	                      :complete=>"Element.hide('indicator-tab')",
			      :url=>{:controller=>'projects',:action=>'show_active_projects'}
	    %></li>
    <li <%="class=active" if  @action_name == 'show_completed_projects' or @tab == 2%>>
	    <%=link_to_remote 'Completed Projects'.t + " (" + @company.completed_projects.size.to_s + ")",
	                      :update=>'projects_list',
	                      :loading =>"Element.show('indicator-tab')",
	                      :complete=>"Element.hide('indicator-tab')",
						  :url=>{:controller=>'projects',:action=>'show_completed_projects'}
	    %></li>
    <li <%="class=active" if @action_name == 'show_all_projects' or @tab == 3%>>
        <%=link_to_remote 'All Projects'.t + " (" + @company.projects.size.to_s + ")",
	                      :update=>'projects_list',
	                      :loading =>"Element.show('indicator-tab')",
	                      :complete=>"Element.hide('indicator-tab')",
						  :url=>{:controller=>'projects',:action=>'show_all_projects'}
	    %></li>
  </ul>
</div>
